home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #11
/
Amiga Plus CD - 2004 - No. 11.iso
/
AmiSoft
/
Dev
/
misc
/
LOCCounter.lha
/
LOCCounter
/
src
/
ArgParser.h
< prev
next >
Wrap
C/C++ Source or Header
|
2004-08-17
|
888b
|
41 lines
#ifndef LOC_ARG_PARSER_H
#define LOC_ARG_PARSER_H
/****************************************************************************
*
* $RCSfile: ArgParser.h $
* $Revision: 2.4 $
* $Date: 2004/08/17 21:53:22 $
* $Author: ssolie $
*
*****************************************************************************
*
* Copyright (c) 2004 Steven Solie. All Rights Reserved.
*
*****************************************************************************
*
* ArgParser component
*
* Each ArgParser object is capable of parsing AmigaDOS templates.
*/
#include <dos/rdargs.h>
class ArgParser {
public:
ArgParser();
~ArgParser();
bool parse(const char* dos_template);
bool getBoolean(const char* arg, bool def);
char* firstString(const char* arg);
char* nextString();
private:
RDArgs* m_args;
const char* m_dos_template;
int32 m_results[MAX_TEMPLATE_ITEMS];
char** m_strings;
};
#endif